<?php
	include("library/vars.php");
	include("library/config.php");
	include("library/opendb.php");

	$query = "UPDATE episodes SET seen='0' WHERE episode='$episode' AND season_ID='$season' AND show_ID='$show'";
	mysql_query($query) or die('Database Error');

	include 'library/closedb.php';
	header( 'Location: index.php?s=' . $show . '&t=' . $season . '&e=' . $episode . '' );
?>